package park;

public class J01Retangle {

	// 1.변수선언 및 초기화
	// 2.계산 및 연산
	// 3.결과 출력

	public static void main(String[] args) {

		double width = 1.0;
		double height = 1.0;
		double getArea;
		double getPerimeter;
		String color = "white";

		width = 4;
		height = 40;
		color = "red";

		getArea = width * height;
		getPerimeter = (width + height) * 2;

		System.out.println(getArea);
		System.out.println(getPerimeter);
		System.out.println(color);
		System.out.println();

		width = 3.5;
		height = 35.9;
		color = "orange";

		getArea = width * height;
		getPerimeter = (width + height) * 2;

		System.out.println(getArea);
		System.out.println(getPerimeter);
		System.out.println(color);

	}

}
